﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace eDocWS.Objects
{
    public class FTPResponse
    {
        public FTPResponse()
        {
            ftpHost = string.Empty;
            ftpName = string.Empty;
            ftpPassive = string.Empty;
            ftpPassword = string.Empty;
            ftpPort = string.Empty;
            ftpTSL = string.Empty;
            ftpType = string.Empty;
            ftpUsername = string.Empty;
        }
        public string ftpUsername
        {
            get;
            set;
        }
        public string ftpPassword
        {
            get;
            set;
        }
        public string ftpHost
        {
            get;
            set;
        }

        public string ftpPort
        {
            get;
            set;
        }
        public string ftpPassive
        {
            get;
            set;
        }

        /// <summary>
        /// Ten FTP
        /// </summary>
        public string ftpName
        {
            get;
            set;
        }

        /// <summary>
        /// Loai server FTP : 0: FTP DOC; 1: FTP Verify
        /// </summary>
        public string ftpType { get; set; }

        public string ftpTSL { get; set; }
    }

    public class AppInfo
    {
        public AppInfo()
        {
            AppJB = false;
            AppMode = false;
            AppPublished = false;
            AppVersion = string.Empty;
            AppPlatformVersion = string.Empty;
            AppName = string.Empty;
            AppMinimumOSVersion = string.Empty;
            AppDesc = string.Empty;
            AppDeviceFamily = string.Empty;
            AppDisplayName = string.Empty;
        }
        public string AppName { get; set; }
        public string AppVersion { get; set; }
        public string AppBundleIdentifier { get; set; }
        public string AppDeviceFamily { get; set; }
        public string AppMinimumOSVersion { get; set; }
        public string AppDisplayName { get; set; }
        public string AppDesc { get; set; }
        public string AppPlatformVersion { get; set; }
        public Boolean AppPublished { get; set; }

        public Boolean AppJB { get; set; }

        public Boolean AppMode { get; set; }

    }

    public class Message
    {
        public Message()
        {
            this.Title = string.Empty;
            this.Code = string.Empty;
            this.Content = string.Empty;
            this.Result = false;
            this.FullName = string.Empty;
            this.Email = string.Empty;
            this.UserName = string.Empty;
            this.TitleAuthe = string.Empty;
        }
        public string Title { get; set; }
        public string Content { get; set; }
        public Boolean Result { get; set; }
        public string FullName { get; set; }
        public string UserName { get; set; }
        public string Email { get; set; }
        public string Code { get; set; }
        public string TitleAuthe { get; set; }        
    }

    public class AppVersionInfo
    {
        public AppVersionInfo()
        {
            Version = string.Empty;
            DatePublished = string.Empty;
            InstallLink = string.Empty;
        }
        public string Version { get; set; }
        public string DatePublished { get; set; }
        public string InstallLink { get; set; }
    }

    public class Devices
    {
        public Devices()
        {
            Actived = false;
            Uuid = string.Empty;
            AppId = string.Empty;
            Email = string.Empty;
        }

        public string Uuid { get; set; }
        public string AppId { get; set; }
        public string Email { get; set; }
        public bool Actived { get; set; }
        public DateTime LogSyncDate { get; set; }
    }

    public class EmailAdmin
    {
        public EmailAdmin()
        {
            Email = string.Empty;
            Name = string.Empty;

        }
        public string Email { get; set; }
        public string Name { get; set; }
    }

    public class RequestAuthen
    {
        public RequestAuthen()
        {
            username = string.Empty;
            password = string.Empty;
        } 
        public string username { get; set; }
        public string password { get; set; }    
    }

    public class ResponseAuthen
    {
        public ResponseAuthen()
        {
            UserName = string.Empty;
            FullName = string.Empty;
            Email = string.Empty;
            Title = string.Empty;
            Code = string.Empty;
            Status = string.Empty;
            MessageError = string.Empty;
        }

        public string UserName { get; set; }
        public string FullName { get; set; }
        public string Email{get;set;}
        public string Title { get; set; }
        public string Code { get; set; }
        public string Status { get; set; }
        public string MessageError { get; set; }

        
    }

}